#include "Thread.hpp"

using namespace My_Thread;

int cnt = 10;

int main()
{
    Thread t([]()
             {
        while(cnt--)
        {
            std::cout<<"hello world!"<<std::endl;
            sleep(1);
        }

         });

    t.Start();
    //t.Detach();
    sleep(5);

    t.Stop();

    sleep(5);

    t.Join();
    return 0;
}